﻿using AutoMapper;
using B.S.RbacData.Domain;
using B.S.RbacData.Domain.Traceabilitys;
using B.S.RbacData.Write.API.Applications.Commands.RBAC;
using B.S.RbacData.Write.API.Applications.Commands.Traceabilitys;
using B.S.RbacData.Write.API.Applications.Commands.Traceabilitys.DeepProcessings;
using B.S.RbacData.Write.API.Applications.Commands.Traceabilitys.Farmings;
using B.S.RbacData.Write.API.Applications.Commands.Traceabilitys.Slaughters;

namespace B.S.RbacData.Write.API
{
    public class AutoMapperProFiles:Profile
    {
        public AutoMapperProFiles()
        {
            CreateMap<AddPermissionCommand, PermissionModel>();
            CreateMap<UpdatePermissionCommand, PermissionModel>();
            CreateMap<IsDelCommand, PermissionModel>();
            CreateMap<AddProductCommand, ProductModel>();
            CreateMap<AddImgsCommand, ImagesModel>();
            CreateMap<AddFarmingCommand, FarmingModel>();
            CreateMap<AddFarmingHealthCommand, FarmingHealthcareModel>();
            CreateMap<UpdateFarmingHealthCommand, FarmingHealthcareModel>();
            CreateMap<AddFarmingCorporateCommand, FarmingCorporateModel>();
            CreateMap<AddSlaughterCommand, SlaughterModel>();
            CreateMap<AddSlaughterCorporateCommand, SlaughterCorporateModel>();
            CreateMap<AddDeepProcessingCommand, DeepProcessingModel>();
            CreateMap<AddDeepProcessingCorporateCommand, DeepProcessingCorporateModel>();
            CreateMap<AddSupplierCommand, SupplierModel>();
           
        }
    }
}
